﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._211026
{
    /// <summary>
    ///  保存点播实体
    /// </summary>
    public class InputPlayTable: BaseUserId
    {
        /// <summary>
        ///  订单号
        /// </summary>
        [Required(ErrorMessage = "订单号属于必传项！")]
        public string OrderCode { get; set; }
        /// <summary>
        ///  商品ID
        /// </summary>
        [Required]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请正确传递商品id")]
        public int CommodityID { get; set; }
        /// <summary>
        ///  设备代码
        /// </summary>
        [Required(ErrorMessage = "设备代码属于必传项！")]
        public string DeviceCode { get; set; }
        /// <summary>
        ///  主题
        /// </summary>
        [Required(ErrorMessage = "主题属于必传项！")]
        public string Content { get; set; }
        /// <summary>
        ///  64位图片
        /// </summary>
        [Required(ErrorMessage = "64位图片必填项")]
        public List<Base64Pic> picture { get; set; }
    }
    /// <summary>
    ///  base64图片
    /// </summary>
    public class Base64Pic
    {
        /// <summary>
        /// base64图片
        /// </summary>
        public string Picture { get; set; }
    }
}